home *** CD-ROM | disk | FTP | other *** search
/ Family Forum 261 / SOMC Family Forum 261.iso / Xtras / Behavior Library.cst / 00011_Script_Play Done < prev    next >
Text File  |  1997-11-17  |  1KB  |  49 lines

  1. -- Play Done (Return from Play)
  2.  
  3.  
  4. -- behavior library version 1.1
  5. --  nav
  6. --  playdone, returns playhead to calling movie or frame or marker where play was called.
  7. -- also functions through lingo by handling message 'initPlayDone', 
  8. -- for example if this behavior was assigned to sprite 5, use
  9. -- sendsprite 5, #initPlayDone
  10.  
  11. property whichEvent
  12.  
  13. on initPlayDone me
  14.   init me
  15. end
  16.  
  17. on mouseUp me
  18.   if whichEvent = #mouseup    then init me
  19. end
  20.  
  21. on prepareFrame me
  22.   if whichEvent = #prepareframe then init me
  23. end
  24.  
  25. on exitFrame me
  26.   if whichEvent = #exitframe  then init me
  27. end
  28.  
  29. on init me 
  30.   play done
  31. end
  32.  
  33.  
  34.  
  35. ---
  36.  
  37. on getPropertyDescriptionList
  38.   
  39.   set p_list = [     #WhichEvent: [ #comment:  "Initializing Event:",                     #format:   #symbol,                      #range: [ #MouseUp, #PrepareFrame, #ExitFrame, #InitPlayDone],                    #default:   #MouseUp ]                  ]
  40.   return p_list  
  41.   
  42. end
  43.  
  44. on getBehaviorDescription
  45.   return "Returns the Playback Head to the frame where a navigation behavior with the Play Mode parameter set to Play and Return was encountered.  If the current movie was opened with the Play Movie behavior, the original movie reappears." && RETURN & "PARAMETERS:" && RETURN & "ò Initializing Event - Specify the event that triggers the behavior."
  46.   
  47. end
  48.  
  49.